List of Active Directory FSMO roles

netdom query /domain:<domain name> fsmo

Active Directory schema version

Get-ADObject (get-adrootdse).schemaNamingContext -Property objectVersion