Paste a protein sequence. It is searched against Drosophila melanogaster proteins at NCBI BLAST, which opens in a new window (press the blue BLAST button there). Then look up the CG or FBgn number of the best hit with Search, or several hits at once with Batch search.