You have 10,000 computers that you need the IP addresses for and of which you know the host names of all of them?
* Reason why I am questioning this is because if you are the system admin of 10,000 systems, you would already have tools available to know what your IPs are etc, and you would be able to look at the DHCP pool of all the DHCP servers. Also if its to create a file that was for active IP's with systems turned off for a weekend etc that lose their lease and get a new IP address on Monday etc your IPs could be ever changing on you.
Is this for a Dynamic or Static Network?