Is it possible to have an infection in or around a artificial knee joint for a couple years and it never be detected in blood work?

Unlikely. If you did not have fever, redness, pain and swelling of the knee, then it was not likely to be infected. You do not have infection that long without major problems developing long before 2 years.