Here's a quick way to check if Firebug is enabled:
if (window.console && window.console.firebug) {
//Firebug is enabled
}
Obviously, this is not a fool-proof method because anyone can overwrite the console object, but I think that it's the best you're gonna get.