You can try the ShareEnum tool from Windows Sysinsternals http://technet.microsoft.com/en-us/sysinternals/bb897442
There is not a built-in tool to query this information from AD. That type of information
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008.
Determine the location of the FSMO roles by lo…