When you print from windows you can on the printer driver normally select the drawer via both methods (via a drawer number or via a paper type). As the specific printer driver knows the relations between the physical drawer and the PCL code the user will only need to refer to the physical drawer number.
If you have a PCL5/PCL5e/PCL5c printer driver you can however chose to ‘print to file’ either when you print or when you install the printer driver.
(When you install the driver you can select ‘Add printer’, ‘Add a local printer’, select port ‘FILE:’ - if you do that, then you are prompted for the output file.)
If you open a small document in Notepad and print to file while selecting a specific drawer, then you can open the resulting .prn file in e.g. Notepad or Notepad+ and here you can actually find the PCL code for the selected drawer. You just need to search for the sequence: <esc>&l#H, where <esc> is a specific escape character (hex 1B) and # is the number your are searching for. This is an example:
%-12345X@PJL JOB NAME="Untitled - Notepad"
@PJL SET STRINGCODESET=UTF8
@PJL SET RESOLUTION=600
@PJL ENTER LANGUAGE=PCL
E *t600R&u 600D* r0F&l 0O &l26A &l4H&l 0S &l1X& l8c1E *p0x0Y*c 0t5611x8178Y*b 0M
&b 1M
*p 0Y (19U( s4099t0b0s15.00h0P&d @* v0o0T *p544Y*p 2178XUntitled
*p 0Y *p615Y*p 330Xdrawer=1
*p 0Y *p6306Y* p2218XPage 1*p 6815Y
E %-12345X@PJL EOJ
%- 12345X
So in the example above Tray=1 is selected when printing, but the PCL code is actually 4.
Drawer 4 would be the number to select in InterForm400.