Here's a trick I found that will get you in the neighborhood, but won't be exact:
Look at your hand on the anterior (palmar side). Now, spread out your fingers as far as they can go. Between any two digits (except for the 1st and 2nd) there will be a palmar and a dorsal interosseous muscle. Look at your middle finger, there will be a dorsal interosseous muscle on each side of it, and a palmar interosseous adjacent to that. To visualize:
(============ Thumb
Dorsal
(============ Index finger
Palmar
Dorsal
(============ Middle finger
Dorsal
Palmar
(============ Ring finger
Dorsal
Palmar
(============= Pinky
All you need to remember is that there are two dorsals next to the middle finger, and that it alternates from that point forth with the palmars. This only works while looking at the palmar side of the hand.
There's also a good diagram in Netter that will help to you visualize it...