Have you considered magic?
TL;DR if you want lightning, handwave it. You have already handwaved biology, physics and chemistry away anyway just to have the dragon itself.
Hi, I am the dreaded Square-Cube Law. If you need your dragons to be both scientifically realistic AND as big as Westerian dragon, I am afraid that me and the other laws of physics are going to have to audit your work. You may be on the hook for a lot of nerding and mathing.
As depicted in the TV series, Drogon was about 150 feet long - about the length of a Boeing 747. Keep in mind that according to the lore of the books, they never stop growing as long as they live, and they can live for centuries.
For size comparison, an adult brachiosaurus would reach about 80 feet in length. This dinosaur also had many adaptations to support its weight that the dragon lacks. Realistically, with a dragon-shaped body, your creatures would not be able to walk and might need to spend at least their adulthood in water. If you want to keep them terrestrial, you might consider switching to a seismosaur-shaped dragon (which would be really funny, a lightning-breathing sauropod), but you would still need to add more and more adaptations for the absurd size.
Which brings us to the breath weapon. If you need this creature to generate lightning... According to Wikipedia, the weaker lightnings release about 200 megajoules in a flash.
I couldn't find much data on dinosaur metabolism estimates, but Randall Munroe quotes a T-Rex needing 40,000,000 science calories per day (I already converted from food calories). I am guestimating and rounding the body mass of your adult, sauropod-shaped dragon at 200 metric tons. Extrapolating from the T-rex (supposing an adult weight of 8 tons) we would have a caloric budget of 100,000,000 science calories per day (anoit a quarter of an adult cow, in american units). For comparison, that weak 200 megajoules lightning is like 47,801,000 calories.
That means shooting a lightning will consume half of its daily caloric intake in a flash. Affordable, maybe, but then you have to consider the absurd heating this will lead to, and require special heat dispersal evolutionary traits to keep the dragon from literally frying itself from the inside when attacking.
A more efficient and realistic approach is to vomit an electrically charged ball of stuff. It would work like this: the dragon has an anode and a cathode in its mouth. It is also able to secrete a large amount of curd from its salivary glands, and uses the anode and cathode to separate the curd into two distinct masses of ions.
The dragon then swallows either side of the electrically charged curd and spits the other side upon its victims. It probably has the advantage of height anyway. Upon impacting the head of a victim, should the poor bastard be conductive enough, an electric shock will ensue. Even if the target is insulated, they will still take the full kinectic load of the curd, making this even more efficient.
I am basing this mechanism off this image that I stole from Reddit. The image depicts a sauropod using vomit as a self-defense mechanism against a group of terrified theropods, and the actual source - a book called Dinosaurs Without Bones, by Tony Martin - is also credited there.
