The quickest way to locate your 7-digit student ID number is to look at your student ID card! It's printed on the front of the current card design, and it's on the back of the older cards.
But if you haven't gotten around to getting your ID yet (or maybe it's misplaced), you just need to log in to myLoneStar. One of the tiles on your Student homepage ("Profile") will display your ID number.