Where is installed module info stored

In the module loader, where is the information stored that shows the modules installed?

I have searched and search both the code and the database and haven’t found where it is stored.

Any ideas?


I’m not sure but I think system scans the /upload folder.