Requires: VMware, Powershell and PowerCLI
Code:
Get-Datastore | Select-Object name, @{name="CapacityGB";Expression={[math]::Round($_.capacitygb,2)}}, @{name="FreeSpaceGB";Expression={[math]::Round($_.freespacegb,2)}}, @{name="PercentFree";Expression={[math]::Round(($_.freespacegb / $_.capacitygb * 100),2)}}