From https://social.technet.microsoft.com/Forums/office/en-US/139e68c6-6331-41c1-a778-2f59f5864a34/get-remote-computer-powershell-version?forum=winserverpowershell
Invoke-Command -Computername <server> -Scriptblock {$PSVersionTable.psversion}