zcat myfile.fastq.gz | head to see the first 10 lines. You should be able to see a couple of read names. The first few parts of it should be instrument ID and run ID, and if the fastqs are straight from the instrument, those should be constant in every read. Something like
zgrep M012933 myfile.fastq.gz should get you all the read names.