Image focus position

Is there any way to retrieve image focus position? I am trying to automate my workflow that includes 2 sequences (narrowband and broadband) and it would be helpful to retrieve image focus position for the flat sequences.
I know I can push focus position into a variable and use it later in flat sequences, but it would be nice to retrieve focus position from the image name or fit headers in case something happened and the software was closed by mistake.

Is your focusing position very different between NB and BB filters? If not you should be able to get into focus even if you start quite off.

Thank you! In one of the scopes it’s OK and no issue. On the other it’s too far.