Get domains:

nltest.exe /domain_trusts

Get DC for domain:

nltest.exe /dclist:DOMINNAME