Listing disks and partitions on Windows 2000

Hi.
I am trying to list all the disks and partitions in each of them on
Windows 2000
machines.
It seems IOCTL_GET_DEVICE_NUMBER can be used for this.
But I was wondering how to use it ? If somebody has a small sample code
demonstrating its use I would really appreciate it.
Regards.
Surojit