The first thing you need to do is to study the problem from a physics point of view and figure out what you actually want to measure.
The accelerometer measures its own acceleration, and what that acceleration might be when it is connected to one of two colliding objects is anyone's guess. It would depend on the masses, relative speeds and orientations of both objects, as well as many other details of the collision process.