How/Where can I find required modules for some functionality in C++?

If you take a look at the Unreal Engine documentation, under the references tab, it should list the required module.

For instance with UNavigationPath: UNavigationPath | Unreal Engine Documentation