The best way to do this would be to call $SYSDIR\sc.exe and analyse the return.
nsExec::ExecToStack '"$SYSDIR\sc.exe" query srservice'
Calling nsExec runs the program without showing a commandline popup window.
; now get return
Pop $0
StrCpy $0 $0 7 114
;at this point $0 will be "RUNNING" if srservice is running.
You can then do what you want with the string.
Why this works:
nsExec is capable of executing commandline apps and storing the return value in the stack. Whenever "sc.exe query srservice" is called from a command prompt (try it!) the first 114 characters of its output are always the same unless your users have recklessly modified their systems.
Working script attached.
-dandaman32