Sometimes when you are not able to access SCCM console for some reason. Maybe you would also like to troubleshoot client issues and you need to find what version of client is running on particular computer.
This can be done with Powershell in simple two steps
#this code will query wmi for Namespace "Root\CCM" and get computername and client version
gwmi -Namespace root\ccm sms_client | fl pscomputername, clientversion