The wmic command can be used to interrogate the local WMI repository. The following queries return hardware related information.
Check total RAM
wmic MEMORYCHIP get BankLabel,DeviceLocator,Capacity,Tag
Check computer model / service tag
Wmic csproduct list /format
Wmic cpu get name
There are many other parameters for this command listed here …