In the diskmgmt.msc, I can see the disk layout info as below:
I am trying to get the same information through PowerShell. None of the usual disk and volume related commands seemed to have the info. Now, I am not sure how true this is but I was told that list volume in disk part holds this information as below:
However, disk part info is often error-prone to parse programmatically. I was wondering if anybody knows of a better way to do this?

