Dale's answer correctly gives the direct manner in which one can distinguish who is accelerating via an accelerometer. Something feels unfulfilling, however, about leaving the implicit question of "what exactly is acceleration?" at "whatever an accelerometer says". To fully address the question, then, I feel it also merits discussing the underlying physical principles which make this distinction possible: why are your and your friend's perspectives not equivalent? What is the accelerometer fundamentally picking up on to make the distinction?
At the heart of this issue is clearly understanding Newton's second law, and all that it entails. It is vital to recognize that $F = ma$ asserts much more than it may appear to at face value. To quote my answer here:
When we put forward $\vec F = \frac{d \vec P}{dt}$ as a means of modelling classical dynamics, then, we are postulating that matter is comprised of particles with well-defined masses and momenta; we are postulating that there exists some exhaustive collection of fundamental interactions of matter, and that to each of these there is associated a vector $\vec F_i$ (i indexing over the interactions), called its force, on every particle of matter; furthermore (in a Galilean context), we are postulating that there exists a family of reference frames, called inertial frames, within which the equation $\sum_i \vec F_i = \frac{d \vec P}{dt}$ is true for every particle of matter (and hence for systems composed of them). By observing real-world dynamics, we hypothesize what the fundamental interactions are and what the vector force associated to each is. We then put these into our model $\vec F = \frac{d \vec P}{dt}$ and see how well it predicts what we see.
The third postulate is crucial: in order to make sense of Newton's second law, we must postulate the existence of a preferred family of frames in which it holds. This is necessary because we can easily see (by transforming between frames which accelerate relative to each other) that it cannot be true in all frames. This leads us to the conclusion that the notion of an inertial frame is intimately tied to our identification of the fundamental interactions and our model of their forces: we identify the inertial frames associated to a model of the collection of fundamental forces as those frames in which non-accelerating objects have $\sum_i \vec F_i = 0$ according to the model. In the current regime of classical mechanics discussed above, we know of exactly two candidate fundamental interactions, gravity and electromagnetism, which together do an exceptional job of modeling nearly all classical phenomena, and hence we define the notion of an inertial frame relative to these.
So, how can you tell which of you and your friend isn't "truly" accelerating according to this picture? By determining which, if either, is subject to zero force according to our understanding of the fundamental interactions. If your friend has a rocket on his back and you don't, say, that's a good indication. If you're accelerating relative to each other, at least one of you must be subject to some nonzero fundamental force.
And what does an accelerometer do? It precisely measures the electromagnetic force, according to our very successful models, on an internal "proof mass", dividing by that mass to obtain the acceleration of this object as it would be measured in an inertial frame, provided this is the only fundamental force present. Finally, note that the modern picture of gravity in Einstein's general relativity is that its associated vector force is identically zero (upon appropriately translating this discussion into the relativistic context), so the detected electromagnetic force really is all we expect there to be, and an accelerometer indeed measures the inertial acceleration.
The question of who is accelerating in the modern sense therefore reduces to: who is subject to a net electromagnetic force? Recall that this includes normal forces, fluid pressure, friction, tension, spring forces, radiation pressure, etc.