The following command will display the current FSMO roles in a domain:

netdom query FSMO

To display the current Primary domain controller in a domain:

netdom query PDC

To display the current domain controllers for a domain:

netdom query DC

To display trust relationships:

netdom query TRUST