I don’t like assuming a laptop is encrypted. A settings page can be vague about it, and this command spells it out per drive.
Open a terminal as administrator and run:
manage-bde -status
Without a drive letter you get every drive, protected or not. Add one to look at a single volume:
manage-bde -status C:
The lines I check are Conversion Status and Percentage Encrypted, which tell you whether encryption has finished, and Protection Status. A drive can be fully encrypted while protection is off, for example when it has been suspended, so read both. Lock Status and the list of key protectors are there too. The protectors tell you what can unlock the drive, such as the TPM or a recovery password.
For a script there is a handy switch:
manage-bde -status C: -protectionaserrorlevel
It sets the return code to 0 when the volume is protected and 1 when it isn’t.
This command only reports. If you find a recovery password among the protectors, make sure you know where your copy of that key is stored before you change firmware settings or move the disk. Without it, a drive that asks for recovery stays shut.
Further reading: manage-bde status