IGES (.igs, .iges) is a common ASCII-based CAD format and most of the modern CAD programs support it and can export their CAD drawings to it.
In case of DWG it should be very easy, considering DWG is de facto one of the standard in CAD industry and it can be imported/opened in almost any CAD software, so dwg to iges conversion should be pretty doable.