I have never done this, but I found this link with a quick google search:
http://msdn.microsoft.com/en-us/library/ms684865(VS.85).aspx
System.Diagonistics.Process.GetProcesses()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)