wmic memorychip get capacity /format:value | find "Capacity"
ram

wmic diskdrive get size /format:value | find "Size"
disk