There is no way in Inform to do this. Items and rooms are the same
kinds of data. You could even use a room as an item or an item as a
room, as long as you were careful with the various aliased properties.
Perhaps if you explained why you need to know whether an object is a
room or not, then I could suggest a sensible work-round.
-- Gareth Rees