To get list of all services (which are not device drivers) use static method ServiceController.GetServices (to get list of driver services use method ServiceController.GetDevices).
ServiceController services = ServiceController.GetServices();Check whether a service is installed:
public static bool IsServiceInstalled(string serviceName)
// get list of Windows services
ServiceController services = ServiceController.GetServices();
// try to find service name
foreach (ServiceController service in services)
if (service.ServiceName == serviceName)