In this situation the person to ask would be an electrician. As far as plumbing codes go, I know of nothing that dictates where a laundry sink can/cannot be in relation to an electrical panel. If you look at it from the opposite perspective an electrician may have a code limitation for where the panel can be in relation to a laundry sink. If you ask an electrician (on another forum, maybe?) it would be best to measure the distances involved between the panel and sink before asking the question and be sure the electrician is familiar with your local codes. Different regions have different rules and reasons.
Hope this was helpful.