This can be accomplished through use of sockets on mIRC, you basically need to open a socket to the web server and request the information through HTTP specific commands. You may find it useful to read this tutorial on data retrieval using sockets as it contains information relevant to finding the solution to your problem:
http://www.mircscripts.org/showdoc.php?type=tutorial&id=1217