how do you learn the inversion layer temperature?
The met man is your friend ... normally measured using a radiosonde as, for example, in
this link.
Probably not available for each and every airport but that would be a matter for some research into your local AIP.