bdehdcfg driveinfo
Displays the drive letter, the total size, the maximum free space, and the partition characteristics. Windows commands reference
On Windows
Windows
Displays the drive letter, the total size, the maximum free space, and the partition characteristics. Only valid partitions are listed. Unallocated space is not listed if four primary or extended partitions already exist. NOTE: This command is informational only and makes no changes to the drive.
bdehdcfg -driveinfo <drive_letter>
To display the drive information for the C: drive
bdehdcfg -driveinfo C:Identify<drive_letter>Specifies a drive letter followed by a colon.