How do I detect if a user is running the application on an iPhone 4 or 3G/3GS?

I need to detect the hardware, not the iOS version.

thanks for any help.

Edit
Report