getNetworksData
function.
It will return a list of NetworkData objects, each containing useful information about the network, such as the id, chain, name, icon, rpc urls, currency data, etc.
This list is based off the networks that are enabled in your environment settings in the Dynamic dashboard.
You can use that information to display a network picker or something similar.