See contour_plot. The returned object from that has an attribute xy_data_array from contains the values at the grid points used to make the plot. Sage doesn't construct the contour lines itself. Matplotlib does that. See matplotlib.pyplot.contour for the relevant routine. You'd have to look there to see if matplotlib makes the computed data easily available.