Sure it can!
I don't have my hands on X-Plane right now, so my directions might be slightly out, but if you go to Data menu, choose which data you want (airspeed, altitude and many more) and export all of them to a file, you are sorted.
Some specific data might be unavailable that way, the next stage would be to look into datarefs and try to export them to the file. Haven't done it myself, I am using a plugin to do it. Have a go.