Today's airport security scanners will not expressly locate a drug or substance and name it. They simply have sensors that will highlight them as targets. Once highlighted, it's up to a security agent to perform a deeper check (which can include anything from a simple pat down to a full strip search in a private room).