The Status method of the IIsWebServer object returns an integer that indicates the current status of the server. The possible values are 1 (starting), 2 (started), 3 (stopping), 4 (stopped), 5 (pausing), 6 (paused), or 7 (continuing).
IIsWebServer.Status