You can get the current mode using the Maker API (you'll have to install it first). You can also do this remotely (if you have cloud access turned on in the Maker API settings).
The local url is http://[your hub ip]/apps/api/[maker api id]/modes?access_token=[your token]
You can set the mode using the same URL, but adding the mode id after modes:
http://[your hub ip]/apps/api/[maker api id]/modes/[mode id]?access_token=[your token]