If they ever do an all electric NASCAR that will be one quiet race with the exception of the air wrenches changing tires and automated battery replacement swapping.
Might be like digital cameras and the added shutter noise - speakers outside each car broadcasting pre-recorded engine noises based on a factor of electrical output and fuel load, plus some random number so the looped track doesn't sound like a looped track.
Around Top Gear's test track, they were able to get IIRC about 30 minutes of full speed usage before he battery was completely drained, at which point it was a 6 hour recharge to top up the batteries again. Definitely not practical for any sort of extended racing series like NASCAR, etc.
Back of the napkin calc: NASCAR cars get 5 mpg, hold 22 gallon tanks --> 110 miles max range. Average speed of 170 mph --> a maximum of 39 minutes of racing.
If they currently pit every 35-39 minutes or so, it wouldn't be completely impractical to pit every 30 minutes or so: have pit crews do a quick swap of the electric batteries at the same time as a the tire change.
Well batteries are much much heavier and would likely be in the centre of the car for weight distribution, and you need to make the electrical connection. Changing a tyre during a race just takes a speed gun and one nut.