You can find it out by goign to Computer Management -> Services and Applications -> Services there's a list with all the services running on your system.
If you must check that out programmatically, see if there is any svchost.exe process running, start with the -k netsvcs option.
Good Luck !
I have a question for you: Are you trying to run a silent install ?