I have found the solution:
It returns: "CME" or "SiteEdit".
Hope it helps!
Nice find! I'm sure I've seen people ask this in the past. By the way, I believe that can be simplified to $config.CurrentEditor Jun 21, 2017 at 8:10
That it's true! Jun 26, 2017 at 14:08