As FedonKadifeli commented, you could use the tpm_version program from the tpm-tools package.
tpm_version
tpm-tools