Yep, hold an item and use the command /itemid. That should give you the right item ID. You could also always look on google :D