White blood cells recognize foreign invaders through specific receptors on their surface that can identify and bind to pathogens or other foreign substances.