It seems that Sandbox solutions are stored at a site level as a SPUserSolutionCollection. You can access them programmatically by using the SPSite.Solutions property. This article shows how to deactivate, delete and activate solutions programmatical ...
[Read more]