This is caused by inhalation of a fungus via dust, hay or bits of grass.
If this is the case, your dog will need veterinary treatment.
Sneezing could also be the result of a nasal mite infestation which can also cause nosebleeds and nasal discharge.
If you see either of these symptoms you should consult your vet.