Installed or active? If active, the app/container has "addon.cache" which will tell you all of the add-ons active and their version IDs. If you really want to do something based on the install status itself, you'd need some sort of query (such as against the add-on table).