Hello Susan Narshing Joshi,
Thank you for reaching out to Microsoft Support!
You can use the List managedDevices endpoint to list all the devices information, but according to the attribute list for the device, there is no attribute for the associated IP address, and you cannot query the IP address using the Graph api. Instead, you can use PowerShell to list IP addresses, see the documentation for details.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.