Hello. You are right that FITS does not output the magic number and
offset information. If you change the <display-tool-output> setting in
xml/fits.xml to true, FITS will include the original tool output in the
output XML. However, it does not look like any of the tools that FITS
uses can output these values either.
ffident has a small list of magic numbers and offsets in
tools/ffident/formats.txt, and file utility has a very large list in
tools/file_utility_windows/share/misc/magic