If you realize or find out which way the wind is blowing or how the wind is blowing, you realize or find out what is likely to happen, for example whether something is likely to succeed.
He didn't like to make pronouncements before he was sure which way the wind was blowing.