You can pull this info from the registry - look in HKLM\Software\Active Voice\AvCsNodeMgr\1.0\
In there you will see "Primary" set to 1 if it's primary or 0 if it's not and under HKLM\Software\Active Voice\AvCsNodeMgr\1.0\Local Services\AvCsMgr\
you'll see a key called "Active Status" - if it's 1 that means this server is the active one in a pair.
It's easy enough to pull that info from a command line app.