For iPhone's
Go to Settings > General > About. To the right of Model, you'll see the model name.
For Android's
Go to the Settings or Options menu, scroll to the bottom of the list, and check ‘About phone’, ‘About device’ or similar. The device name and model number should be listed.