PowerCLI command:


$vmhost | get-VMHostHardware | select -ExpandProperty MemoryModules