Virus detection before the virus affects the desktop

Normally, viruses are detected on the desktop itself

Is there a product that detects viruses before they infect the desktop. What about a router or a firewall? Do those devices detect viruses before they infect the desktop? If yes, can you recommend a particular brand and model?

If there is such a device, does that mean that the Norton virus definitions would be loaded to that device?

Thank you