Apps like Headset Button Controller are the most likely to do what you ask. That said the headphones you use have to be hardware compatible with the Android device you are using.
My Sennheiser MM50's are designed for iPhone but work on my Google Nexus S and HTC Incredible S, so I'd expect the same to be true of other iPhone compatible headphones and Android devices.
That said, the MM50's do exhibit different behaviour on eathereither phone (e.g. press on Nexus mutes the call as I'd like, but on Incredible it ends the call - Grrr).