I have the solution
EXEC master..xp_servicecontrol 'QueryState', 'SQLServerAgent'
This returns a string detailing the current status. You can also stop and start the service with the following commands:
EXEC master..xp_servicecontrol 'STOP', 'SQLServerAgent'
EXEC master..xp_servicecontrol...