To check the local domain controller for a computer or server simply type the following in the command prompt: echo %logonserver%

What this does is print the value of the environment variable giving you the machine name of the domain controller being used.