Hi MBantz,
this is interesting stuff I was after when doing addlocale but then it depends what you are after. If all you need to distinguish is gksu/kdesu and a way for dialog messages then zenity is good for any DE and a simple test for kdesu (`which kdesu`) should be sufficient, either kdesu exist, or if not then it must be gksu. But maybe you want to do more sophisticated things later on. In any case, I'd be interested as well in finding a good way to distinguish between the different DE's, not only if they are installed in the system, but more importantly, which DE is currently running.
best,
-p.