For 9mm, there are headstamps I will toss out, like all of those with the internal step (FM, Ammoload, IMT, Maxtech come to mind). I also look for the NATO headstamps, as those have crimped primer pockets that need to be dealt with, or just tossed out. Run a magnet over them as well, some will be brass plated steel. Some may have Berdan primers, but most of those (not all) will be steel.
For 45acp, as everyone has already said, look for small or large primer pockets. And not only are the "NT" versions of Federal and Win small pockets, they are also crimped.
Besides steel cases, some are also aluminum, toss those out.