This is an ambiguous sentence with respect to the (his) pronouns. But it is probably trying to convey that Tom entered the room and saw Tom's (his) brother playing with Tom's (his) toys. Or, it could mean Tom entered the room and saw Tom's (his) brother playing with Tom's brother's (his) toys.