Hi @srinath sarman ,
Try the following:
Get-WmiObject -Class Win32_LogicalDisk -ComputerName <Server_Name> | ? {$_. DriveType -eq 3} | select DeviceID, {$_.Size /1GB}, {$_.FreeSpace /1GB}
----------
(If the reply was helpful please don't forget to upvote or accept as answer, thank you)
Best regards,
Leon