Could a high absolute difference between heading and course give a hint about weather conditions?
Thinking through the possibilities, if you knew the pressure conditions, and the change of those conditions as plane moves, and you knew the wind direction and speed and its changes as the plane moves, you might be able to have some kind of AI software estimate the location of the pressure centers in the airmass you're flying in, and from that calculate the pressure gradients and wind direction/velocities for some distance around the plane's location.  This might be able to produce a &quot;better than nothing&quot; educated guess as to the wind speed and direction ahead based only on the data being received in real time.
To do this, besides an extremely powerful computer (weather forecasting agencies use multiple Cray supercomputers to predict circulation flows, but maybe you don't need that much power) you would need the normal air data inputs like ambient and dynamic pressure (indicated airspeed), and you'd need to know the airplane's true altitude and true position, which can be provided by a GPS interface.
If the software knew the precise height above the earth so it could measure ambient pressure and continuously calculate barometric pressure and measure pressure changes, and it knew the precise location, track, heading, groundspeed, and true airspeed of the airplane so it can continuously calculate wind velocity and direction (FMS systems on jets do that already), it might be able to create its own pressure pattern map of the immediate area, and from that generate a prediction of wind conditions some distance ahead.