What products can I use to detail my engine?

Well... when it rains I do know a little bit of rain gets on the belt and surrounding areas but its not like opening the hood and directly spraying water/chemicals around the fuel injectors/ecu/ ect. Just my opinion....
 

Can you really spray the engine bay with tire foam? like the same foam that gives you a "wet tire" look? what brand do you use?