First, you need to install TPM2-tools, TPM2-tss and TPM2-Abrmd. Then run the command:
tpm2_pcrread and dump it to a file. Also, you run the sudo tpm2_eventlog /sys/kernel/security/tpm0/binary_bios_measurements to check the whole log including PCR values.