The IRS is essentially a big DR computer - it doesn't 'detect' wind as such. It continuously works out the aircraft's track and groundspeed using input from the accelerometers. It also receives heading input combined with TAS from the air data computer, and thus it can calculate the wind velocity at any time.