Yes it is possible to write such book, there are however a number if issues that need to be addressed.
Recipient.
Since you have exact control over location and time of arrival we can use historical records to drop the book at the proverbial lap of Leonardo da Vinci, Copernicus, Rene Descartes, or any other appropriately bright mind of the time. That's great, it wasn't until 19 century that universal education became a concern at all, and in any prior time, most people wouldn't be able to even read the title.
Language, part 1. Math.
Electricity requires specific language: math. Unfortunately, a lot of math that goes into electromagnetism wasn't even known back then. Integrals, differential equations, even something as obvious as Cartesian coordinates (you remember last of the 3 people I mentioned earlier? Rene Descartes is the one who formulates Cartesian coordinate system) are things yet to be formulated if you are truly aiming at medieval times.
Thus, some part of your book would have to be a mathematics handbook. Don't worry, scientists of the time would be excited to stumble upon this part alone, general populace gives too little credit to late medieval and renaissance mathematicians.
You may argue that they don't need math to build electric lights and you would be right, as I explain in later parts, generator and lamp itself are very simple devices, however by providing blueprints without underlying science you risk your gift being treated like magic. It will be slavishly replicated without any understanding of concepts behind, you even run a sizeable risk that such book becomes hailed as gift of god and changing something as small as number of coils in generator becomes heresy.
Language, part 2. Latin.
Latin, obviously. Use of latin makes it easy to copy and share, and it was THE language of educated men back then. As a bonus, writing it in latin means you can send it without change to many people at the same time, preferably within same year.
Language, part 3. Metric system.
This part is by far THE hardest. You don't believe me? Look up on wikipedia how metre, kilogram and second are defined. Modern definitions have great advantage: they rely on laws of nature, thus they can be replicated anywhere, without any contact with original "ideal" (yes, if we build FTL capable ships and get stranded in another galaxy, we could replicate metric system from literally nothing but pure knowledge, after multiple generations of advancing our tools to high enough precision, that is). Unfortunately you need correct tools for that. Very, very precise tools.
The only way to solve it, that I can think of, is to accept much lower precision and just supply a 10 centimetre ruler with the book. They can easily measure how much is 1m. Distilled water has known density, so after measuring 10cm10cm10cm cube they know what 1kg is. Time, seems to be trickier but it's not - pendulum. Measure up a bit of string of proper length, attach ball made of heavy metal and let it swing - period of oscillation depends on gravitational acceleration and length of string. With 1m, 1kg and 1s defined, it's possible to further define 1 newton, 1 joule, 1 watt, 1 ampere, 1 coulomb, 1 volt and any I missed. That way, bit by bit it's possible to reconstruct most of the metric system, introducing final part of mental framework required not just copy, but understand, improve and adapt electrical devices.
Electric generator.
This one's relatively easy.
It's copper wire and magnet. Copper was known and used since ancient time. Some cultures knew magnetite since 1000 BC, and compass used for navigation by Chinese as soon as 10th century, some records suggest it has reached Europe as early as 12th century. Attach generator to water mill and you are done.
Technically speaking, you can just show them diagrams how to make it, completely omitting math, electric generators are very simple at the core, but if you want people at the time to have any chance to improve initial design, or better adapt it to the tools they have, you need to introduce proper math.
Lightbulb
This one's right out.
Lightbulbs look simple, but really, they are not. Lightbulb requires glass, inert noble gasses or high vacuum and Wolfram aka Tungsten. First vacuum pump was invented in 1654 and most likely required mechanical precision that may be unfeasible in times before. Tungsten wasn't discovered until late 18 century and even if you explain how to obtain it, it has ~3500 Celsius melting point. If you however manage to cram that much info into one book, you are very close to vacuum tubes and simple computers.
Carbon Electric Arc
Since Lightbulbs are too complicated we need simpler alternative: Carbon Arc Lamp. It's as simple as 2 carbon rods touching together, creating spark which is stretched into electric arc, while evaporating carbon is feeding the plasma conduit. Simple, easy, but short lived. No vacuum or Wolfram required, just carbon. Coal and Graphite are known since prehistory.