I'm planning to do a simple game using the XNA and I would like to add the possibility of using a Play Station 2 controller. Is there a way to detect its inputs?
There is no API in XNA / .NET Framework which gives you simple access to generic gamepads. There is a .NET wrapper around DirectInput which you could use for that purpose.