If modified parts have lateral bud or node and internode, they are stems. If modified parts have nodes then the difference can be seen by location within the node, leaves always emerge below the stem. If modified parts are roots, then they are always emerging from stem tissues.