For this to work, you will need to have:
1) A printer that supports reading out the paper tray via it's serial port.
2) The protocol documentation of the printer (or a lot of time to reverse engineer it)
3) Some basic knowledge of serial ports.
If you have all of those, you can use the .NET SerialPort class to interface with it. You can find the documentation and some sample code here:
http://msdn.microsoft.com/en-us/library/system.io.ports.serialport(v=vs.100).aspx[
^]
Hope this can get you started, it might prove to be quite a challenge.
Good luck!