How to detect Apple Developer Mode

Hai Guys, i want to ask about how to detect the iPhone, turn on the developer mode or not ? is it possible detect by api? or maybe function to detect it ?