You would need to use the ATFS commands. However these commands are currently not accessible to Micro Python. So I am not sure how else you are going to do it.
https://www.digi.com/resources/documentation/Digidocs/90002219/#reference/r_unavailable_at.htm?Highlight=at%20command