You tell that person straight out. Trying to find out through friends and stuff doesn't really help. If the other person shares the same feelings then you can go somewhere from it. But if they don't rejection is the best way to remove those feelings you have for them. Besides there are ways you can tell if they like you such as if they spend time with you or talk to you often. There are hints you just have to read them.