Depending on where you are in the product development process, some of the best methods for identifying bad UX include:
Conducting UX research
Making detailed user personas
Creating user journey maps
Leveraging customer support data
Checking user reviews and ratings