search for a Photoshop script to do that there are some that can be downloaded.
Can that information be included with Contact Sheet II or Picture Package? I don't have them installed, and it's years since I last used Contact Sheet, but seem to rememner that there titling options.
There is a Photoshop Scripting Forum
where this threads for example
can be found.