Is it possible to install VS 2010 & .NET 4.0 in Windows XP machine with SP2.
Nope. you need at least winxp with Service pack 3.
Visual Studio 2010 System Requirements