Once you have spent some time on chords ear training you …

https://www.musical-u.com/learn/how-can-you-recognise-chord-inversions-by-ear/
Once you have spent some time on chords ear training you should be able recognise major, minor, augmented and diminished triads by ear.

A useful next step is to work on recognising the different inversions of each chord.

https://www.musical-u.com/learn/how-can-you-recognise-chord-inversions-by-ear/