This paper discusses an inverse source problem for time-harmonic Maxwell's equations. We consider the propagation of electromagnetic waves in a homogeneous space. Here, the source term is expressed by electric current dipoles. For the above problem, we propose an identification method of dipoles from the data of electric and magnetic fields. This method is based on boundary integrals using vector-valued weighting functions. By the proper choice of weighting functions, we can identify locations and moments of dipoles without any iterative procedures. The error estimates for identified results are also obtained. The effectiveness of our method is shown by numerical examples.