Casteel, pinch-hitting for pitcher Franklin Morales, hit the offering from Patrick Corbin just over the wall in right for a 2-0 Colorado lead.
Morales, who is battling for a spot in the starting rotation, allowed just one hit over two scoreless innings.
"I feel good," Morales said. "I worked quickly with my pitches."
The left-hander did struggle a bit with his command, allowing two walks while striking out one. Of his 36 pitches, 21 were strikes.
Corbin, who could be in line to start the season opener for the D-backs on March 22 against the Dodgers in Sydney, allowed just four hits over four innings, with his only runs allowed coming on the homer.
The Rockies increased their advantage in the fifth, when leadoff batter Brandon Barnes reached second on an error by center fielder A.J. Pollock. One out later, Charlie Culberson doubled off the wall in left, scoring Barnes.
Corey Dickerson followed with a double down the left-field line to score Culberson, Ryan Wheeler added an RBI double later in the frame, and the Rockies pushed across another on a throwing error by Chris Owings to go up by 6-0.
"They pitched good; they played good," D-backs manager Kirk Gibson said. "They took it to us."
D-backs up next: The D-backs have a day-night doubleheader scheduled for Saturday at Salt River Fields. They will take on the Brewers at 1:10 p.m. MST and the Cubs at 7:10 p.m. MST. Trevor Cahill is scheduled to start the day game, while the night game will give fans a chance to see right-hander Archie Bradley, who is rated as the game's top pitching prospect by MLB.com.
Steve Gilbert is a reporter for MLB.com. Read his blog, Inside the D-backs, and follow him on Twitter @SteveGilbertMLB. This story was not subject to the approval of Major League Baseball or its clubs.