On Debian, there is libpaper. It reads /etc/papersize and environment
variables.
Thanks for the info, but since it doesn't exist even on Red Hat
(/etc/papersize doesn't either), it seems of rather limited
applicability, unfortunately. Unix just never had a centralized place
to store that info, useful as it would be.
Best,
Karl