you can do this by opening either using an existing bot script written in .NET, or write one yourself.
it's a matter of opening a tcp connection to the server, do all the stuff you need to do according to the irc RFC to connect, issue the commands to get the info you need, then parse the return data and disconnect again. I'm sure there are some open source libraries for it already floating around somewhere.