The command would be something like
kpsewhich cmr10.tfm. I'd prefer to use
kpsewhich, the
kpathsea library it wraps, or whatever other standard methods may exist in TeX for finding files, so as to ensure my script'll find the same files that TeX does; but if all else fails I'll try
File::Find::Rule, thanks.