The objective of the present invention is to provide an electroencephalogram detecting device and program for evaluating correlations between a plurality of regions in a brain, on the basis of reactions of the regions of the brain to an electromagnetic stimulus applied to the brain. The electroencephalogram detecting device includes a signal generating unit configured to apply an electromagnetic stimulus to a prescribed region in a brain of a subject, an electroencephalogram detecting unit including a plurality of electrodes for detecting electroencephalograms in a plurality of regions in the brain in which the electromagnetic stimulus was applied to the prescribed region, and a computing unit configured to evaluate correlations between a part of the brain associated with the prescribed region to which the electromagnetic stimulus was applied and parts of the brain associated with the plurality of regions, on the basis of a plurality of electroencephalograms obtained respectively from the plurality of electrodes.