You can also say: Would you like some coffee to drink? Although we normaly don't say that, because we know coffee is for drinking. In the second question, however, it's "Would you like something", then it has to be said clearly if it's something to drink or to eat etc.