I will ask you, "how can I know I have the Spirit?"
You may say, "by your lifestyle, desires, conviction, etc".
I will say, "We are commanded to not sin. So I try not to sin. Therefore, my lifestyle, desires, etc, are lived according to Gods will. But these results are by my own effort. I can't distinguish between my works, and the Spirit's works. So...how do I know I have the spirit? Do I live my entire life assuming I have the Spirit, meanwhile potentially remain unsaved?"
You will say, "________"
as many as are led by the Spirit of God, these are children of God.
Romans 8:14
Let's give you a view which is both Scriptural as well as expanded, amplified, in plain language, instead of being theological constructs, abstract concepts.
Jesus chose 12 persons who were different from the crowd. The difference was that they were dissatisfied, unhappy with the situation they were in, maybe even unhappy with the explanations for that situation, a bit like you! Scripture calls these people heroes of faith, Hebrews 11 and parallels (1 Chronicles 29:15):
Hebrews 11:13-16
13All these died in faith, without receiving the promises, but having seen them and having welcomed them from a distance, and having confessed that they were strangers and exiles on the earth. 14For those who say such things make it clear that they are seeking a country of their own. 15And indeed if they had been thinking of that country from which they went out, they would have had opportunity to return. 16But as it is, they desire a better country, that is, a heavenly one. Therefore God is not ashamed to be called their God; for He has prepared a city for them.
They were unhappy with what men, what they had to live with, and desired a better situation:
John 1:47
Jesus saw Nathanael coming to Him, and said of him, "Behold, an Israelite indeed, in whom there is no deceit!"
Acts 7:34
I have certainly seen the oppression of my people in Egypt. I have heard their groans and have come down to rescue them. Now go, for I am sending you back to Egypt.
So the first indication that you have received the Holy Spirit is when you receive revelation, because the Holy Spirit LEADS, into truth.
THIS truth is that the reason for your dissatisfaction is that you were created not only to feel holy, but also BE holy. Your dissatisfaction stems from the fact that you are in a city, a type of humanity which is foreign to you, and God is not afraid of being identified with you, because that's how He feels too! He has prepared a new type of humanity for you, accessible by self sacrifice, picking up a cross. He gives you to Christ.
The problem is that not all who received the Holy Spirit through baptism are cleansed :
John 13:10
10Jesus said to him, “He who has bathed needs only to wash his feet, but is completely clean; and you are clean, but not all of you.”
Psalms 106:21
21They forgot God their Savior, Who had done great things in Egypt,
To speak plainly, Joshua and Caleb and Peter believed God could bring them into the new humanity , out of the old Adam into the new Adam, being blessings to the world, although the details were not clear to them. They had had a bath though, they only needed the small details clarified, foot washing.
Israel, Judas forgot the proof God had revealed. They could not believe God could bring them into rest, especially when it was also revealed about their need to be faithful, loyal, follow God even when He asked them to risk their lives (the disciples were not very loyal, but they were ready to follow Jesus even when it risked death, so we must give them credit, even when they were not fully clear how they were being taken into rest and were not as clear as they finally were when the Holy Spirit led them into ALL truth at Pentecost).
Well, that is a big chunk of revelation. You can probably see the pattern, the intent of the OT AND the NT writers. Different people will understand to different levels, have different questions, so please ask for the clarification YOU need.