Any CCD type of camera will detect IR. A webcam or even a digital still camera will work for you.
Provided it doesn't have an IR filter - really cheapo webcams will usually omit such options...
As far a telling which is which:
1) first - why don't you post a picture of the items in question - maybe we could guess? My guess based on your description is opposite to what you were supposing, but I would want to see a picture first...
2) another option would be to try to do some tests on each with a multimeter that has a diode and transistor check functions; the only thing I am not sure of is if the diode check would read a transistor the same, or different. Maybe this link might help you:
http://www.elexp.com/t_test.htmThe greater issue for #2 is performing the test without destroying the part; I think a picture first for us might help with the guesswork.
Next time, though - buy your parts from a reputable vendor who knows what he is selling...