Hi, @Quino Neious
Thank you for posting in Microsoft Q&A forum.
It seems you want to retrieve build number of devices in a collection, like Rahul Jindal mentioned, we just need to right click the device collection and click "Show Members", add the column "Operating System Build", then export all of them to a CSV file.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".