It would be possible to write a script that finds all add-ons that you used in the currently loaded save. Obviously, you would need to have all required add-ons (and possibly more, doesn't matter) enabled. The way you're suggesting can't be made working relieably as multiple add-ons might use overlapping uinames, or create brick datablocks in unusual ways, etc.