Yes, just ask for un vaso de agua or una jarra de agua. Unless you're in a high-end (or pretentious) restaurant it's perfectly acceptable, specially if you've already ordered something else, like wine. And if you're lucky in some places (like Madrid) tap water is literally undistinguishable from bottled.