Create new project - > now add reference ? System.Management;
Code is:
using System.Management;
ManagementObjectSearcher mos = new ManagementObjectSearcher("SELECT * FROM Win32_POTSModem");
foreach (ManagementObject mo in mos.Get())
{
listBox1.Items.Add(mo["Caption"].ToString());
}