The built-in predicate current_predicate/2 can be used to find all the currently loaded module, and where they were loaded from.
current_predicate/2
current_module(
)
,