It's hard to say beyond knowing how/where certain brands/products are made and sometimes just getting lucky. Occasionally companies will have a spec sheet indicating the materials used and any processes applied to the tools.
When looking at country of origin, China often means its crap. Not always, though. Taiwan is a safer bet, they have pretty decent manufacturing practices and learned a lot from the US many years ago when manufacturing shifted to Asia got a lot of things. Other Asian origins are a crap shoot, usually.
Harbor Freight Pittsburgh professional line tools are usually pretty good, for instance. Often made in Taiwan, too. The "regular" Pittsburgh tools are of much lower quality and usually come from China. Buying made in US tools is an option but usually very spendy.
The torx drivers I have are Neiko brand and made in Taiwan. I belive I got them from Amazon. Do note that this company makes tools in various countries, so some may come from China as well. Decent quality, and if they do break weren't so expensive that I'll cry over it. They're socket style which I like for most cases, but be aware they won't fit in areas with tight access.
Just do a bit of research and at least find out country of origin, and take a look at the tool to see how it's built. If it looks cheap it probably is. If it feels lighter than it should its probably junk metal. Look for reviews when buying online.