Impossible and unethical. A WEP key is the password to someone else's network. Accessing it without permission is:
Do not use WEP. Upgrade to WPA2/WPA3. The DS/DS Lite only supports WEP — use a travel router (e.g., GL.iNet) in WPA2→WEP bridge mode, or play on DSi/3DS/phone/PC instead.