It's hard and yellowish.
It's likely just discharge dried on your underpants. Discharge is normal but if you notice anything weird with the discharge it's best to consult a doctor.
Keep a look out for odd colors, textures, and smells.
Its probably discharge. It shouldn't smell much, and be clearish white. Tell a doctor if it isn't.