NetCharDevEnum or Net32CharDevEnum

The NetCharDevEnum API provides information about all available serial devices pooled in shared serial device queues on a server.