I'd think (based on nothing but my experience) that your average nurse might have higher likelihood of taking hard drugs than an average SWE :)
Some people think meth means “amphetamine” (although it usually methamphetamine), and there’s a lot of software engineers who take different types of prescribed amphetamines like Adderal and Ritalin.
And don’t even get me started on weed and millenials.
Coffee, psychedelics and alcohol are drugs just like heroin. Whether you believe they are useful to consume is a different matter.
In that sense, I wouldn't call SWEs a "drug using group."
We all know the pedantic meaning of the word "drug" - in that case, the whole humanity is a drug-taking species, since we prefer drug-altered consciousness to our natural one (e.g. by caffeine).