Cura embeds the settings used to generate a gcode file in comments in the bottom of the file. For some reason, they are in a funny format though - a comment, with a prefix, containing a hard-wrapped JSON object with a few properties, each of which is a double-escaped string!
This is a small script to strip the comments back out and do the various concatenations and decodings to show you what the settings were.
M82 ;absolute extrusion mode
M104 S0
;End of Gcode
;SETTING_3 {"global_quality": "[general]\\nversion = 4\\nname = Draft #2\\ndefin
;SETTING_3 ition = custom\\n\\n[metadata]\\ntype = quality_changes\\nquality_typ
;SETTING_3 e = draft\\nsetting_version = 17\\n\\n[values]\\nadhesion_type = skir
;SETTING_3 t\\nadhesion_z_offset = 0\\nadhesion_z_offset_extensive_processing =