Determining enrollment status of the agent on each device