Can I connect 12ga wire for a gas range to 10ga wire from the service panel?
As long as you have the right configuration of conductors yes, you can use a wire bigger than necessary. Be sure to change the circuit breaker to match the circuit and receptacle required. 
Remember, you CANNOT have a "standard" 15 or 20 amp receptacle on a 30A breaker.