NetServerDiskEnum or Net32ServerDiskEnum

The NetServerDiskEnum API retrieves a list of disk drives on a workstation.

The drive names in the list are consecutive strings, each containing a drive letter, a colon (:), and a null string terminator (\0). For example, the following can be returned for a server having two diskette drives (A and B), one hard-disk drive (C), and one RAM drive (E):

A:\0B:\0C:\0E:\0