How can I get a list of loaded modules in my program? Example: DLL files that are loaded in my program?

I want to try and prevent DLL injection in my game, and it's not hard for someone to make a DLL and inject it into my process manually or during runtime.