In order to search for referenced subsystems, you can use the “find_system()” functions and select the “FollowLinks” and “LookInsideSubsytemReference” parameters.
You can refer to the following documentation link for more information:
Hope this helps!