Is it possible to get the highest CUDA version supported by PyTorch via python?

Hi, guys!
Is it possible to get the highest CUDA version supported by PyTorch via python?
Such as, in the Start Locally | PyTorch,


The highest supported CUDA is 11.7.

So, can we get this version number (11.7) via python?

Your answer and guide will be appreciated!