The mIRC would have a remote event like "on USBREAD" to see data received from it, and a command to send data to it like "/usbwrite".