How can I programmatically determine sites of a SharePoint 2007 installation that use custom code (DLLs, etc)? Or put another way, how can I identify all sites that are not your "standard" document collections, lists, calendars, etc?
Basically, I'm interested in identifying sites that require source code. I don't want to look at the GAC or something and get a list of DLLs, as there could be stale files in there. I want a list of (sites, URLs, whatever) I can navigate to in order to see pages are actually using things, etc.
My company has a bad history of contractors and employees who didn't use source control. I need to get a handle on just how bad our situation is...