Here is a one-liner to get the sum of all disks associated to a specific VM in GB.
(Get-VM -name YOURVMNAME | Get-HardDisk | Measure-Object -Property CapacityKB -Sum).sum/(1024*1024)
Reference:
VMware PowerCLI Documentation
Microsoft PowerShell Documentation