Pills?

How long do things like nerve pills and pain pills stay in your system? If being used for the high and not for the actual purpose? I need to test my husband but idk if it has been to long to see if he is lying..