01. Using MSINFO32
Open Run Command and type in msinfo32, The System Model from list specifies whether a Machine is VM or Physical.
If its VM then the value will be
System Model : Virtual Machine
If its Physical then the value will be
System Model : Manufacture Model Name
02. Using Powershell Script
Run the below Powershell command from elevated permission
Systeminfo | findstr /i model