Method 1: Look in /dev for anything with lp
n, where n is a digit, e.g.
If you're using udev on your system I believe only devices which exist should have nodes in /dev.
Method 2: Check in dmesg:
Code:
dmesg |grep parport |grep ' lp'
(be aware that dmesg outputs a ring buffer, and boot-time messages like the parport one might get flushed from this buffer if there is a lot of post-boot dmesg activity (e.g. plugging USB devices))
Method3: Have a poke about in the /proc and /sys filesystems. I'm not quite sure how to get the device filename from this, but it's possible to get the IO base address and such.