domain controller:
NetGetDCName
NetGroupEnum
NetServerEnum
Retrieving the name of the primary domain controller (PDC) and join status information (NT/2000/XP)