I need help with detecting a fire block with a command

I need help from somebody to tell me how to detect a block of fire and it's exact location. So I could later replace it with something else.

Continue to help post