You may use the following (2) Microsoft Windows PowerShell cmdlets to view the domain and forest functional levels of a Microsoft Active Directory domain.

Get-ADDomain | Format-List Name, DomainMode
Get-ADForest | Format-List Name, ForestMode