The Device property is an array, so you will have to find the correct entry.
Perhaps based on the Label, something like this
$hd = $vm.Config.Hardware.Device | where{$_.Info.Label -eq 'Hard Disk 1'}
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference