You want to retrieve information about all the services on your computer.
Use the shared ServiceController.GetServices method.
.NET allows you to interact with any installed Windows service using the ServiceContoller class. The ServiceController class includes information such as
The service name and description.
The status of the service (running, stopped, paused, and so on).
Whether or not the service supports pause and continue and shutdown.
What other services this service depends on.
You can create a ServiceController object bound to a specific service by specifying the service name in the constructor, as shown here:
Dim TestService As New ServiceController("TestService") ...