with the help of a mIRC DLL yes.
mIRC calls DLL calls API function with any params you want from the mIRC -> DLL interface
you will have to do some string conversion from your mIRC data that you send to the DLL which is all in one string and your API call inside the DLL.
for help on creating DLLs in mIRC, you can look at various scripting sites, they all have a tutorial lying in somewhere.