below is the snippet for that
$PSVersionTable.PSVersion
If you want to check this on remote servers, use invoke-command which connects using WinRM service.
Invoke-command -computername server1,server2 -scriptblock ( $PSVersionTable.PSVersion)
Regards,
Chaitanya