In some cases, I have known other people who worked in the companies and attested to the poorness of the work environment, or been able to read large and very public accounts of employee discontent within them.
Another good indicator of the same things is the unnecessary use of open-plan offices, especially if combined with a lack of willingness to permit significant time working from home.