Export data from mySQL to CSV

Yes, it's possible.

However, whilst selecting data from a database that has been entered using the "Store History" option is not impossible, it certainly makes it a bit harder.

It would be much easier if the tags got logged into the database via e.g. a transaction group, if you have that module, if not you can write your own script... however depending on the quantity of tags/complexity, it may take longer in man-hours than just buying the TG module.