You can use enumDevicesTargets.ps1 example and check for the SyncStatus property of an HA device. 1 stands for "synchronized", 2 for "synchronizing", 3 for "non-synchronized".
Let me know if you need more information.
The Latest Gartner® Magic Quadrant™Hyperconverged Infrastructure Software