Hi and Welcome to Digi Forums.
You can obtain information directly from a Digi routers via its web interface or CLI, see our documentation here: https://www.digi.com/support/productdetail?pid=5644&type=documentation
If you do not have a way to talk to it directly, the best and easiest way would be to use our Digi Remote Manager platform which would allow you to send API requests to the platform and obtain such information.
You can get information about Digi Remote Manager here: https://www.digi.com/products/iot-software-services/digi-remote-manager and documentation is available once you are logged in.
If you have any further issues or need assistance, please reach out to our Support Team at email@example.com
Digi Technical Support