To retrieve a Lenovo ThinkPad machine type, model (MTM) and serial number with PowerShell, run the command:
Get-CimInstance -ClassName Win32_ComputerSystemProduct
IdentifyingNumber: R00FKF00
Name: 20FB003TUK
Vendor: LENOVO
Version: ThinkPad X1 Carbon 4th