Add the following directives to your project:
using System.IO;
using System.IO.Ports;
Use a function similar to this to retreive a list the available ports.
public string[] findPorts()
{
string[] foundPorts = SerialPort.GetPortNames();
return foundPorts;
}