What is the best way to enumerate the network adapters, similar to the Control Panel Network program?

Thanks, Simon