Is there any way to check if a smartthings outlet is on or off?

I want to check if the outlet is powered on when a contact sensor is opened and if it is I want to turn it off . How do I check the power state of the plug ?