Do you have to be able to print it directly from the qbasic program? You could simply have the program save the information you want printed into a text file and simply printing it later from Notepad.
You can not communicate directly to the printer. XP will not allow it, every bit of information that the printer gets has to come from the printer's driver, that is the only way to communicate with the printer, if you can crack the driver you could then talk to the printer.
If a man says something in the forest and no woman hears it is he still wrong?