Cleaning "Builder's foam" off where it shouldn't be
It's called 'spray foam insulation'

Acetone (nail polish remover) will remove it - but it potentially will damage the surface that got contaminated.  

On an unrelated note - you should demand that the window company pay you for damages/cleaning.