@karthik palani, Thanks for posting in Q&A.
Agreed with @Rahul Jindal [MVP], currently, there is no such properties in Microsoft Entra that can query TPM 1.2 and above machines to the M365 group. As for blocking specific devices enrolling in Intune, you can create a dynamic group refer the link below and create a custom platform restriction policy.
https://www.prajwaldesai.com/intune-device-enrollment-restrictions/
Non-official, just for reference.
https://learn.microsoft.com/en-us/entra/identity/users/groups-dynamic-membership#rules-for-devices
Hope it can help you.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.