SELECT * FROM Win32_portconnector where ExternalReferenceDesignator like '%USB%'
this will give list of all USB ports
ManagementObjectSearcher search= new ManagementObjectSearcher("\\root\\wmi", "SELECT * FROM Win32_portconnector where ExternalReferenceDesignator like '%USB%'");
foreach (ManagementObject managementObject in searcher.Get())
{
string s = managementObject["ExternalReferenceDesignator"].ToString();
string s1 = managementObject["InternalReferenceDesignator"].ToString();
}