Grammatically, "Do you want some sugar?" is correct. When you ask a question with an expectation of yes as an answer, then, you should use "some". It's rare that you ask a question but expect "No" as an answer. That's why I don't believe "Do you want any sugar?" is right. Though in speaking English, both may be accepted.