The nearest I can find for the UK is this...Very similar format except the name of town is replaced with UK Post code...
Example:
areacode,x,y,latitude,longitude
AB10,392900,804900,57.135,-2.117
AB11,394500,805300,57.138,-2.092
AB12,393300,801100,57.101,-2.111
AB13,385600,801900,57.108,-2.237
AB14,383600,801100,57.101,-2.27
AB15,390000,805300,57.138,-2.164
AB16,390600,807800,57.161,-2.156
- etc -
The link is here
http://www.jibble.org/ukpostcodes/
I've also attached the full list as a zip..Hope this helps...