@Swahela Mulla, Thanks for posting in Q&A. For your request, if you want to monitor local user password compliance state, you can firstly set Password related compliance policy setting to apply to the device.
https://learn.microsoft.com/en-us/mem/intune/protect/compliance-policy-create-windows#password
Then monitor the compliance state. After researching, I find a link describe the method to get the data. You can refer to it.
https://doitpsway.com/get-intune-compliance-data-using-powershell-leveraging-graph-api
Note: Non-Microsoft link, just for the reference.
Hope the above information can help.
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.