On workstations like Windows 7 I use the following command to query AV:
WMIC /Node:localhost /Namespace:\\root\SecurityCenter2 Path AntiVirusProduct Get displayName /Format:List
But on Windows Server 2012, the SecurityCenter2 namespace is not available.
What is the possible alternative on servers?