Explore Windows Versions Locally - OTRF/Blacksmith Wiki

Get-WmiObject Win32_OperatingSystem |
Select PSComputerName, Caption, OSArchitecture, Version, BuildNumber | FL