Home UK English to know a hawk from a hernshaw
And variants: to have good sense or discernment.
READ THESE ARTICLES