ohhh, lucky you, i just saw a program for this, but you're gonna have to do the digging
go to majorgeeks.com and check out their security section i believe, among the huge list of programs given, one of them said that it prevents the installation of spyware/adware programs such as the ones you have stated. Sorry that i cannot remember the exact name of it.
*also if it isn't in the security section, then it will be in the Miscellaneous section, because those are the only two i visited recently [i was looking for a good pop up blocker, man XP sucks..]
Good Luck