Hi techrahul95,
you can query the health check:
Load Balancer Health Checks Most often the health-check port is 5550,
so, something like
curl http://:5550/health-check/guaranteed-active
Should give you meaningful responses.
For sure, you can also use SEMP to query the state of the messaging vpn.
Have a nice day.
Uli