God speaks most clearly and surely to us through the Scriptures. So if you want to know if a particular desire of your heart was placed there by God, you need to test it against a more certain type of God-speech than a feeling of the heart. You need to test it against Scripture. Does your desire fit the drumbeat of the Scriptures? In particular, is it Christ-like, intent on honoring God and serving others before self? That's rule number one.
Rule number two is to make sure you aren't testing it against your own private ideas about the Scriptures, but are consulting wise Christians who know both the Bible and your personal struggles. If they agree your deisre fits the Scriptures and is healthy for you spiritually, that's always a good indicator. This is one reason we must have close fellowship with other believers.
We could go on, but close attention to rules one and two will usually settle the matter.