I think there might not be. The version.h would be the most natural place (as in closest match to version.py, the canonical source of information from Python) and it does not have the information.
To my mind, it would be useful to get
tools/setup_helpers/gen_version_header.py
to generate the same things as
tools/generate_torch_version.py.
Maybe you could open an issue to discuss this.
Best regards
Thomas