Hi, on the first part of your question - Yes it would be fine to ask; "Hi, I need to repair my car. It has a problem with the XXX. I would like to know how much it will cost./I would like to get a quote. Thank you."
It's also very common to ask "Could I get an estimate on how much it would cost to repair it."
On the second question - If the quote is more than you expect, depending on the store and country you are in, you could either haggle about the price, or politely say, "thank you for the quote, I'll let you know when, or if, I'm ready to get the work done."