Hydrocarbon level detection with nanosecond laser ablation