Certainly, but you need the correct printer driver


OK it may in very very limited cases be possible, but I suspect not the way you may require, A plain text file can be easily read and displayed by most browsers it is just like xml or html simply text after all.
The browser will require some means to copy the plain-text for saving and that in theory can be saved to a file or print device which in turn can be sent to a text printer, however they are very rare since most modern printers are graphical, thus require a printer driver to convert text into vectors or PDF or postscript text or any other printers own language.
NOTE: The browser cannot/should not execute code such as
Notepad /print MyTxt.txt "Generic / Text Only"
since that would breach cross origin security.
However it is simple to do that without a browser involved using runtime command line java-script in a console / batch file or gui like Iexplorer.