X,Y coordinates to TXT or EXCEL

Hello!

I have more than 1000 points in a DWG file, some in a layer others in another and I want to export all their coordinates to a TXT file or Excel. I have Draftsight 2020 x&4 SP2. Can this be done? Thanks!