I've seen tons of these over the years building computers, they are often shipped as chassis screws (for panels, power supplies, expansion slot cover plates, etc.)
And you're right, using them in a hard drive can wreck the threads pretty well if it's slightly out of alignment when screwed in, but based on the ones I've seen supplied with computer chassis they are the right/same threading.
Basically they work well (enough) for sheet metal fastening but for softer metals like aluminum you're better off using more precise, round-shafted screws.
The shaft shape is basically a Reuleaux triangle ('The shape, other than a circle, a manhole cover be made so that it cannot fall down through the hole').
As @sawdust points out in his comment, and now @DanielRHicks in his answer, they appear to be self-tapping screws intended for machine/assembly line usage.
I've personally used them as a substitute, ghetto tap because I felt they we're cheap, we usually had buckets of screws around the shop, and I'd rather destroy them instead of better screws (which would be used to finally fasten whatever I was making the hole for). :)